from ssh import DeviceQuery


cisco_881 = {
    'device_type': 'cisco_ios',
    'host':   '10.103.1.161',
    'username': 'zhuwei12',
    'password': '',
    'port': 22,          
    'secret': '',
    '__vender': 'cisco-9300-16-12',
}

# data = [item for item in f_data if item['IpAddress']
#         != 'unassigned']

a = DeviceQuery(cisco_881)
data = a.query_lldp_info()

for row in data:
    print(row)
